import java.util.Date;


public class User extends Record{


	private String login;
	private String password;
	private int userId;
	private int clientId;
	
	public User(String table, int id, String createdOn, String modifiedOn, int createdBy, int modifiedBy, String login, String password, int userId, int clientId) {
		super(table, id, createdOn, modifiedOn, createdBy, modifiedBy);
		this.login = login;
		this.password = password;
		this.userId = userId;
		this.clientId = clientId;
	}
	
	public User(String login, String password, int clientId) {
		super("users", 0, new Date().toString(), new Date().toString(), 1, 1);
		this.login = login;
		this.password = password;
		this.clientId = clientId;
	}
	
	public User() {
		super("users", 0, new Date().toString(), new Date().toString(), 1, 1);
		this.login = "NA";
		this.password = "NA";
		this.clientId = 0;
	}
	
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getClientId() {
		return clientId;
	}
	public void setClientId(int clientId) {
		this.clientId = clientId;
	}
	
}
